Skip to content

feat: route-operator#715

Open
3Hren wants to merge 1 commit intomainfrom
feat/route-operator
Open

feat: route-operator#715
3Hren wants to merge 1 commit intomainfrom
feat/route-operator

Conversation

@3Hren
Copy link
Copy Markdown
Member

@3Hren 3Hren commented May 4, 2026

No description provided.

@3Hren 3Hren requested review from a team as code owners May 4, 2026 12:53
@3Hren 3Hren marked this pull request as draft May 4, 2026 12:53
@3Hren 3Hren force-pushed the feat/route-operator branch from 1630f85 to a8d810e Compare May 4, 2026 14:29
@3Hren 3Hren marked this pull request as ready for review May 4, 2026 14:31
@3Hren 3Hren force-pushed the feat/route-operator branch 4 times, most recently from 191fadc to b7ede17 Compare May 4, 2026 15:38
@3Hren 3Hren requested a review from a team as a code owner May 4, 2026 15:38
@3Hren 3Hren force-pushed the feat/route-operator branch 4 times, most recently from d536906 to 0c425ee Compare May 4, 2026 16:38
Comment thread agents/yanet-route-operator/internal/operator/actuator_gateway.go Outdated
Comment thread agents/yanet-route-operator/internal/operator/fib_build.go
Comment thread agents/yanet-route-operator/internal/operator/reconciler.go Outdated
Comment thread agents/yanet-route-operator/internal/operator/reconciler.go
Comment thread common/go/operator/actuator.go Outdated
@3Hren 3Hren marked this pull request as draft May 4, 2026 18:50
@3Hren 3Hren force-pushed the feat/route-operator branch 2 times, most recently from 45edfee to a40d502 Compare May 4, 2026 19:27
@3Hren 3Hren marked this pull request as ready for review May 4, 2026 19:28
Comment thread common/go/operator/actuator.go Fixed
@3Hren 3Hren force-pushed the feat/route-operator branch from a40d502 to 2d81098 Compare May 4, 2026 19:31
}

actuator := NewFanOutActuator(
actuator := operator.NewFanOutActuator[*StageConfig](
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unnecessary type argument

hardwareSlice = append(hardwareSlice, entry.HardwareRoute)
stats.HardwareRoutes++
}
key.Insert(idx)
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I understand that it's highly unlikely to overflow here in a common case. However, in an age of virtualisation, it is not obvious that we will not exceed the bitset.TinyBitset{} limit here. I'd suggest to implement the TryInsert method

// and snapshot source.
func NewReconciler(
actuator Actuator,
snapshot SnapshotFunc,
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd expect to see here the SnapshotProvider interface, not the function callback.


// hardwareKey is a comparable form of a hardware route used to
// deduplicate AddRoute calls.
type hardwareKey struct {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This type duplicates the agents/yanet-route-operator/internal/discovery/neigh.HardwareRoute, and I predict that this will happen again in the other places. It's worth putting it in it's own package in common/go

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants